package com.wtwd.campus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.campus.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2022-11-08
 */
@ApiModel(value = "PolygonFence对象", description = "")
public class PolygonFence extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户的围栏id，注意vcom的围栏特殊处理绑定关系存在vcom_fence_imei中，与园型围栏共存")
    private String fenceId;

    @ApiModelProperty(value = "围栏名称")
    private String fenceName;

    @ApiModelProperty(value = "围栏顶点组数")
    private String fencePoints;

    @ApiModelProperty(value = "围栏报警类型（0：进围栏报警，1：出围栏报警，2：	进出都报警）这里为2")
    private Integer alarmType;

    @ApiModelProperty(value = "围栏类型 （1：圆形，2：多边形）这里为2")
    private Integer fenceType;

    @ApiModelProperty(value = "围栏所属应用类型（0：家长端 1：第三方厂家 2：通用	平台） 这里为1")
    private Integer appType;

    @ApiModelProperty(value = "围栏地址")
    private String address;

    @ApiModelProperty(value = "是否激活，这里为true")
    private Integer isActive;

    @ApiModelProperty(value = "附加参数 ，可选")
    private String params;

    @ApiModelProperty(value = "客户id(当客户id为空时为平台围栏)")
    private Integer customerId;

    @ApiModelProperty(value = "客户对接的设备类型，此处请参考设备表")
    private Integer deviceType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFenceId() {
        return fenceId;
    }

    public void setFenceId(String fenceId) {
        this.fenceId = fenceId;
    }

    public String getFenceName() {
        return fenceName;
    }

    public void setFenceName(String fenceName) {
        this.fenceName = fenceName;
    }

    public String getFencePoints() {
        return fencePoints;
    }

    public void setFencePoints(String fencePoints) {
        this.fencePoints = fencePoints;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public Integer getFenceType() {
        return fenceType;
    }

    public void setFenceType(Integer fenceType) {
        this.fenceType = fenceType;
    }

    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    @Override
    public String toString() {
        return "PolygonFence{" +
                "id=" + id +
                ", fenceId=" + fenceId +
                ", fenceName=" + fenceName +
                ", fencePoints=" + fencePoints +
                ", alarmType=" + alarmType +
                ", fenceType=" + fenceType +
                ", appType=" + appType +
                ", address=" + address +
                ", isActive=" + isActive +
                ", params=" + params +
                ", customerId=" + customerId +
                ", deviceType=" + deviceType +
                "}";
    }
}
